package homework07;


class Circle {
	//成员变量
	int r = 0;//半径
	int x = 0;//圆心 横坐标
	int y = 0;//圆心 纵坐标
	int x1 = 0;
	int y1 = 0;
	double distance = 0;//定义到圆心距离的平方
	//结构方法
	public Circle(int r, int x, int y, int x1, int y1) {
		super();
		this.r = r;
		this.x = x;
		this.y = y;
		this.x1 = x1;
		this.y1 = y1;
	}
	//成员方法
	public void judge() {
		distance = (x-x1)*(x-x1)+(y-y1)*(y-y1);
		if(distance < r*r)
			System.out.println("在圆内");
		else if(distance > r*r)
			System.out.println("在圆外");
		else
			System.out.println("在圆上");
	}	
}
public class Exercise02 {
	public static void main(String[] args) {
		Circle c1 = new	Circle(6,4,5,9,9);
		c1.judge();
	}
}



























































//class Point{
//	double x,y;
//	Point(double x,double y){
//		this.x = x;
//		this.y = y; 
//	}
//	double getX(){
//			return x; 
//	} 
//	double getY(){ 
//		return y; }
//	}
//class Circle{ 
//	double r; 
//	Point pp;
//	Circle(double r){
//		this.r = r;
//		pp =new Point (0,0); 
//	} 
//	Circle(double r,Point p ){ 
//		this.r = r; this.pp=p;
//		} 
//	boolean isContain(Point pt){ 
//		double a =(pp.x-pt.x)*(pp.x-pt.x)+(pp.y-pt.y)*(pp.y-pt.y);
//		double b = this.r*this.r; 
//		if(a
//	}
//}
